#ifndef LOGIN_H
#define LOGIN_H

#include <QDialog>
#include <QListWidgetItem>
#include "qclickedlabel.h"
#include "db.h"
namespace Ui {
    class Login;
}

class Login : public QDialog {
    Q_OBJECT
public:
    Login(QWidget *parent = 0);
    ~Login();
    void onDisplayVerCode(QString &vFile);
Q_SIGNALS:
     void cancelLogin();
     void LoginSuccess();
public slots:
     void loginClick();
     void SelectAccountClick();
     void cancelClick();
     void exitClick();
     void timerDone();
     void lblNextStatusClicked(QClickedLabel* label);
     void lblNextSettingClicked(QClickedLabel* label);
     void OnSelectAccount(int currentRow);
protected:
    void changeEvent(QEvent *e);
private:
    void showStage(int index);
    void displayVerycode();
    int status;
    int sound;
private:
    Ui::Login *ui;
    QTimer* timer;
    QAction *actHidden;
    QClickedLabel* lblNextStatus;
    QClickedLabel* lblStatus;
    QClickedLabel* lblNextSetting;
    QClickedLabel* lblSetting;
    QClickedLabel* lblLoading;
    QClickedLabel* lblBG;
    AccountList accountList;

};

#endif // LOGIN_H
